You searched for: “solar distillation
solar distillation
A technology employed to purify water by means of solar energy; for example, a solar collector is used to heat water, which evaporates and then condenses.

As the water evaporates, only the water vapor rises, leaving contaminants behind.